package chapter2.No2_2_synchronized同步语句块.m内置类与静态内置类.demo1;

/**
 * !
 *
 * @author liujian
 * @version 2016/11/14 0014
 */
public class PublicClass {
    private String userName;
    private String psw;
    class PrivateClass {
        private int age;
        private String address;

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        @Override
        public String toString() {
            return "PrivateClass{" +
                    "age=" + age +
                    ", address='" + address + '\'' +
                    '}';
        }
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPsw() {
        return psw;
    }

    public void setPsw(String psw) {
        this.psw = psw;
    }

    @Override
    public String toString() {
        return "PublicClass{" +
                "userName='" + userName + '\'' +
                ", psw='" + psw + '\'' +
                '}';
    }
}
